<template>
  <div class="wether">
    <span> 广东市气象台2024年06月21日11时22分发布台风橙色预警信号 </span>
  </div>
  <div v-show="isVisible" class="menu">
    <MenuList :menuList="MENU_LIST"></MenuList>
  </div>
  <div class="btn">
    <div @click="clickShow" class="icon" src></div>
    <p style="display: block">图例打点</p>
  </div>
  <div class="icon icon1"></div>
  <div class="icon icon2"></div>
  <div class="icon icon3"></div>
  <div class="icon icon4"></div>
  <div class="icon icon5"></div>
  <div class="icon icon6"></div>
  <div class="icon icon7"></div>
</template>
<script setup>
import { MENU_LIST } from '../static'
import { usecenterContent } from '../share'

const { isVisible, clickShow } = usecenterContent()
</script>
<style scoped lang="less">
.wether {
  display: flex;
  align-items: center;
  width: 557px;
  height: 120px;
  margin-top: 36px;
  margin-left: 40px;
  opacity: 1;
  border-radius: 14.55px;
  background: #021a367f;
  padding: 14px;
  span {
    opacity: 1;
    color: #ffffff;
    font-family: Source Han Sans SC;
    font-weight: bold;
    font-size: 21.82px;
    line-height: normal;
    letter-spacing: 0px;
    text-align: left;
  }
}
.menu {
  position: absolute;
  bottom: 247px;
  width: 193px;
  height: 646px;
  padding: 14px 16px;
  opacity: 1;
  border-radius: 5.6px;
  background: rgba(2, 31, 59, 0.5);
  border: 1.2px solid rgba(168, 213, 255, 1);
  backdrop-filter: blur(14px);
  box-shadow: inset 0px 4.8px 12px 0px rgba(0, 132, 255, 1);
  li {
    width: 160px;
    height: 36px;
  }
}

.icon {
  position: absolute;
  width: 160px;
  height: 168px;
  z-index: 999;
}

.icon1 {
  margin-left: 192px;
  bottom: 0;
  background: url(@/assets/images/icon-allin.png);
  &:hover {
    background: url(@/assets/images/icon-allin-hover.png);
  }
}

.icon2 {
  margin-left: 400px;
  bottom: 24px;
  background: url(@/assets/images/icon-safe-info.png);
  &:hover {
    background: url(@/assets/images//icon-safe-info-hover.png);
  }
}
.icon3 {
  margin-left: 581px;
  bottom: 47px;
  background: url(@/assets/images/icon-manager.png);
  &:hover {
    background: url(@/assets/images/icon-manage-hover.png);
  }
}

.icon4 {
  margin-left: 778px;
  bottom: 52px;
  background: url(@/assets/images/icon-manager.png);
  &:hover {
    background: url(@/assets/images/icon-manage-hover.png);
  }
}

.icon5 {
  margin-left: 973px;
  bottom: 47px;
  background: url(@/assets/images/icon-danger-source.png);
  &:hover {
    background: url(@/assets/images/icon-danger-source-hover.png);
  }
}

.icon6 {
  float: right;
  margin-left: 1173px;
  bottom: 30px;
  background: url(@/assets/images/icon-pre.png);
  &:hover {
    background: url(@/assets/images/icon-pre-hover.png);
  }
}

.icon7 {
  margin-left: 1362px;
  bottom: 0;
  background: url(@/assets/images/icon-emerge.png);
  &:hover {
    background: url(@/assets/images/icon-emer-hover.png);
  }
}
.btn {
  position: absolute;
  display: flex;
  align-items: center;
  bottom: 139px;
  width: 800px;
  height: 67px;
  .icon {
    width: 67px;
    height: 67px;
    opacity: 1;
    border-radius: 4.8px;
    background: rgba(0, 132, 255, 0.2);
    border: 1.2px solid rgba(168, 213, 255, 1);
    box-shadow: inset 0px 4.8px 12px 0px rgba(0, 132, 255, 1);
  }
  p {
    position: relative;
    left: 90px;
    display: block;
    width: 90px;
    height: 20px;
    margin: 0;
    line-height: 20px;
    opacity: 1;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0px 2.8px 14px 0px rgba(0, 132, 255, 1);
    font-family: Source Han Sans SC;
    font-weight: bold;
    font-size: 22.4px;
  }
}
</style>
